<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>{$_SESSION.username}的个人中心_{:C('site.sitename')}</title>
                <link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_index.css" />
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>				
        </head>
	<body>

		<!--顶部-->
		{include file="user/userheader" /}

		<!--User Start-->
		<div class="main">
			<!--左导航-->
			{include file="user/userltnav" /}

			<div class="uc-rigbox">
				<div class="xm-line-box uc-info-box">
					<div class="box-bd">
						<img class="uc-avatar" src="__USERS__/images/userphoto.jpg" />
						<div class="uc-info">
							<h3 class="uc-welcome">
								<span class="user-name">{$_SESSION.username}，欢迎您！</span>
							</h3>
							<ul>
								<li>
									安全级别：
									{switch name='security_hd'}
										{case value='1'}
											<span class="orang">中</span><span class="icon-safe-leve2"></span>
										{/case}
										{case value='2'}
											<span class="Green">高</span><span class="icon-safe-leve3"></span>
										{/case}
										{default /}
										<span class="red">低</span><span class="icon-safe-level"></span>
									{/switch}
									{eq name="user.email_check" value="1"}邮箱已绑定{else /}<a href="{:U('/user/emailvalidate','','',false,true)}">绑定邮箱</a> 可在忘记密码时顺利找回。{/eq}						
								</li>	
								<!--<li>未读消息：<span class="fb">15</span><a href="#">查看</a></li>-->
							</ul>
						</div>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
				</div>    

				<!--最近订单 Start-->   
				<div class="uc-title"><h3>最近订单</h3></div>
				{notempty name="list"}
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="uc-tab">
						<tr>
							<th width="15%">订单编号</th>
							<th class="left">产品信息</th>
							<th width="8%">订单金额</th>							
							<th width="13%">购买时间</th>
							<th width="8%">订单状态</th>
							<th width="6%">删除</th>
						</tr>
						{volist name='list' id='list'}
							<tr id='t{$list.id}'>
								<td><a href="{$list.tours_url}">{$list.order_id}</a></td>
								<td class="left"><a href="{$list.tours_url}"><img src="{$list.tours_image}" width="50" height="50"/>{$list.title|msubstr=23}</a></td>
								<td width="8%" class="price"><span>¥ {$list['insure_num']*$list['insure_price']+$list['adult']*$list['adult_price']+$list['child']*$list['child_price']}</span></td>								
								<td><span class="date">{$list.create_time|mdate}</span></td>
								<td>
									{switch name="list.status"}
										{case value="0"}<a href="javascript:;" class="anniu daishouli">待受理</a>{/case}
										{case value="1"}<a href="javascript:;" class="anniu yishouli">已受理</a>{/case}
										{case value="2"}<a href="{:U('/line/onlinepay?orderid='.$list['order_id'],'','',false,true)}" class="anniu yiqueren">去付款</a>{/case}
										{case value="3"}<a href="javascript:;" class="anniu yizhifu">已支付</a>{/case}
										{case value="4"}<a href="javascript:;" class="anniu yiwancheng">已完成</a>{/case}
										{case value="5"}<a href="javascript:;" class="anniu yiquxiao">已取消</a>{/case}
									{/switch}
								</td>
								<td><a href="javascript:;" id="{$list.id}" class="del"  title="删除">删除</a></td>
							</tr>

						{/volist}
					</table>
					{else /}
					<div class="noinfo">您暂时没有未收货订单。<a href="{:C('site.siteurl')}">挑挑喜欢的商品去<font style="font-family: '宋体',Arial"> &gt;&gt;</font></a></div>  
				{/notempty}

				<!--最近订单 End--> 

				<!--当季热卖 Start-->
				<div class="uc-title"><h3>当季热卖</h3></div>
				<div class="uc_xl_in">
					{volist name="tuijian" id="vo"}
						<dl class="uc_xl_box">
							<dt class="uc_xl_pic"><a rel="nofollow" href="{$vo.url}" target="_blank"><img src="{$vo.images_full}" alt="{$vo.title}" /></a></dt>
							<dd class="uc_xl_tit"><a rel="nofollow" href="{$vo.url}" target="_blank">{$vo.title}</a></dd>
							<dd class="uc_xl_jia">¥<font class="h18">{$vo.price}</font><font class="preqi">起</font></dd>
						</dl>
					{/volist}
				</div>
				<!--当季热卖 End-->
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<!--User End-->

		<!--footer-->
		<include file="userfooter" />
		<script type="text/javascript">
			$(function () {
				//删除
				$(".del").click(function () {
					var self = $(this);
					var id = self.attr('id');
					$.ajax({
						url: "/user/orderline_del",
						data: {
							id: id
						},
						dataType: "json",
						type: "post",
						cache: false,
						success: function (data) {
							if (data.code == 1) {
								$('#t' + id).remove();
							}
						}
					});
				});
			});
		</script> 

	</body>
</html>
